        <?php        
session_start();      
include 'header.php';
include_once 'data_access.php';
$connect=new database_access();
$connect->connect();
        echo '<div id="left">	<div class="left_top"></div>';
        include 'student.php';  
if(isset ($_SESSION['personalnumber'])){
$student=new student();
$student->name=$student->GetName($_SESSION['personalnumber']);
echo '  <br><br> <center><p  style="font-size: large; color: #990000; " >
مرحبا بك   '.$student->name. 
'</p></center>';
$recommendation=$student->showrecomendation($_SESSION['personalnumber']);
$row=mysql_fetch_array($recommendation);
$recomender=$row['recomender_id'];
if($row['recomender_id']){
$room_id=$row['room_id'];
$name=$student->GetName($recomender);
echo '  <br><br> <center><p  style="font-size: large; color: #990000; " > لقد رشحك&nbsp'.$name. 
'&nbspللسكن معه '.'</p></center>';
echo '<center><h2> <a href="accept_recomendation.php">قبول السكن معه</a><br>
<a href="reject_recomendation.php">رفض السكن معه</a></h2></center>';
}  else {
echo '  <br><br> <center><p  style="font-size: large; color: #990000; " > عفوا لم يرشحك أحد للسكن معه</p></center>';    
}
}
      echo '</div><div id="main_bot"></div>';
        include 'footer.php';  
        ?>
